<table class="table">
  <thead>
    <th class="first"><%= sort_link @search, :presentation, "#{t 'helpers.label.emailtemplate.presentation'}" %></th>
    <th><%= sort_link @search, :from, "#{t 'helpers.label.emailtemplate.from'}" %></th>
    <th><%= sort_link @search, :from, "#{t 'helpers.label.emailtemplate.bcc'}" %></th>
    <th class="last"></th>
  </thead>
  <tfoot>
    <th colspan="6"><%= button_to_new "Vytvořit novou emailovou šablonu", new_admin_email_template_path if permitted_to? :create, :admin_email_templates %></th>
  </tfoot>
  <tbody>
    <% unless email_templates.blank? %>
      <%= render :partial => "email_template", :collection => email_templates %>
    <% else %>
    <tr>
      <th colspan="10">Nebyly nalezeny žádné emailové šablony.</th>
    </tr>
    <% end %>
  </tbody>
</table>